[INFO] cloning repository https://github.com/jdkern11/rust_clock
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jdkern11/rust_clock" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dfda5f98d8e5a3a643bfd36c9411db0e35c2b28d
[INFO] fixing jdkern11/rust_clock against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdkern11%2Frust_clock" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jdkern11/rust_clock
[INFO] finished tweaking git repo https://github.com/jdkern11/rust_clock
[INFO] tweaked toml for git repo https://github.com/jdkern11/rust_clock written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jdkern11/rust_clock on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/jdkern11/rust_clock already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21
[INFO] running `Command { std: "docker" "start" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking clock v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: enum `TimeUnit` is never used
[INFO] [stdout]  --> src/lib.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | enum TimeUnit {
[INFO] [stdout]   |      ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Clock` is never constructed
[INFO] [stdout]   --> src/lib.rs:10:8
[INFO] [stdout]    |
[INFO] [stdout] 10 | struct Clock {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add`, `add_seconds`, `add_minutes`, `add_hours`, and `normalize` are never used
[INFO] [stdout]   --> src/lib.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Clock {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new(hour: u32, minute: u32, second: u32) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |     pub fn add(self, unit: TimeUnit) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     fn add_seconds(mut self, seconds: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     fn add_minutes(mut self, minutes: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 50 |     fn add_hours(mut self, hours: u32) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     fn normalize(&mut self) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `clock`
[INFO] [stdout]    --> src/lib.rs:100:33
[INFO] [stdout]     |
[INFO] [stdout]  98 |         let clock = Clock::new(8, 40, 23);
[INFO] [stdout]     |             ----- move occurs because `clock` has type `Clock`, which does not implement the `Copy` trait
[INFO] [stdout]  99 |         let new_clock = clock + TimeUnit::Seconds(60);
[INFO] [stdout]     |                         ----------------------------- `clock` moved due to usage in operator
[INFO] [stdout] 100 |         println!("clock is {}", clock.to_string());
[INFO] [stdout]     |                                 ^^^^^ value borrowed here after move
[INFO] [stdout]     |
[INFO] [stdout] note: if `Clock` implemented `Clone`, you could clone the value
[INFO] [stdout]    --> src/lib.rs:10:1
[INFO] [stdout]     |
[INFO] [stdout]  10 | struct Clock {
[INFO] [stdout]     | ^^^^^^^^^^^^ consider implementing `Clone` for this type
[INFO] [stdout] ...
[INFO] [stdout]  99 |         let new_clock = clock + TimeUnit::Seconds(60);
[INFO] [stdout]     |                         ----- you could clone this value
[INFO] [stdout] note: calling this operator moves the left-hand side
[INFO] [stdout]    --> /rustc/622891a4e29178280638a6b63a8908bde2c0c854/library/core/src/ops/arith.rs:91:11
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `clock` (lib test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21", kill_on_drop: false }`
[INFO] [stdout] 23b3ecb607ea5f59a2dee75f09e06a6a187aff64cc996a3fdd5aefc91854cc21
